package org.dong.service.Impl;

import org.dong.mapper.TargetMapper;
import org.dong.pojo.Target;
import org.dong.service.TargetService;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class TargetServiceImpl implements TargetService {
    @Resource
    TargetMapper targetMapper;
    @Override
    public List<Target> getTargetList(Integer projectId) {
        return targetMapper.getTargetList(projectId);
    }

    @Override
    public Integer addTargetDetail(Integer targetId, Integer reportId) {
        return targetMapper.addTargetDetail(targetId, reportId);
    }

    @Override
    public List<Target> getDetailList(Integer reportId) {
        return targetMapper.getDetailList(reportId);
    }

    @Override
    public Integer updateTargetInfo(Integer id, String num) {
        return targetMapper.updateTargetInfo(id, num);
    }
}
